-- GENERATED SPELL FOR [Ymirjar Dusk Shaman] --


function spell0_26694(pUnit, Event) --@Dark Mending,Heal--
pUnit:FullCastSpellOnTarget(49204,pUnit)
pUnit:RegisterEvent('Sorts_26694', 3000, 1)
end

function spell1_26694(pUnit, Event) --@Dark Mending,Heal--
pUnit:FullCastSpellOnTarget(59252,pUnit)
pUnit:RegisterEvent('Sorts_26694', 3000, 1)
end

function spell2_26694(pUnit, Event) --@Lycanthropy,Self--
pUnit:FullCastSpellOnTarget(49170,pUnit)
pUnit:RegisterEvent('Sorts_26694', 5000, 1)
end

function Sorts_26694(pUnit, Event)
local choix_sorts_26694 = math.random(0, 2)
if choix_sorts_26694 == 0 then
pUnit:RegisterEvent('spell0_26694', 1, 1)
end
if choix_sorts_26694 == 1 then
pUnit:RegisterEvent('spell1_26694', 1, 1)
end
if choix_sorts_26694 == 2 then
pUnit:RegisterEvent('spell2_26694', 1, 1)
end
end

function mob26694_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26694', math.random(1500, 3000), 1)
end

function mob26694_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26694_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26694_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26694, 1, 'mob26694_Action')
RegisterUnitEvent(26694, 2, 'mob26694_Leave')
RegisterUnitEvent(26694, 3, 'mob26694_Kill')
RegisterUnitEvent(26694, 4, 'mob26694_Die')
